package com.dao;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.bean.User;
import org.springframework.stereotype.Repository;

/**
 * @author WxrStart
 * @create 2022-05-17 16:58
 */


@Repository
public interface UserMapper extends BaseMapper<User> {
    /**
     * 根据商品id查询秒杀活动
     * @param seckillId
     * @return
     */
    User getUserBySeckillId(Integer seckillId);

    /**
     * 根据用户Id修改用户
     * @param userId
     * @return
     */
    Integer updateByUserId(String nickName,String phone,String address,Integer userId);
}
